#include <stdio.h>

char *findStr(char *str, char ch)
{

    while (*str)
    {
        if (*str == ch)
        {
            return str;
        }

        str++;
    }
    return NULL;
}

int main()
{
    char str[] = "hello world";
    char ch = 'h';
    char *p = findStr(str, ch);
    if (p == NULL)
    {
        printf("未找到\n");
    }
    else
    {
        printf("%s\n", p);
    }
    return 0;
}